﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.Master" AutoEventWireup="true" CodeBehind="TGrade.aspx.cs" Inherits="finalexam.WebForm7" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div style="height: 450px; width: 1000px; float: left; ">
        <div style="float: right; width: 140px;">

                <asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                    <asp:ListItem>春天</asp:ListItem>
                    <asp:ListItem>夏天</asp:ListItem>
                    <asp:ListItem>秋天</asp:ListItem>
                    <asp:ListItem>冬天</asp:ListItem>
                </asp:DropDownList>
                <asp:Button ID="Button2" runat="server"  Text="确认" OnClick="Button1_Click" />

            </div>
        <div style="height: 450px; width: 1000px; float: right; ">

            <div style="float: right; width: 782px; height: 146px;">
                <br />
                <asp:Label ID="Label5" runat="server" Text="学期"></asp:Label>
                &nbsp;&nbsp;<asp:DropDownList ID="DdListSem0" runat="server" Height="19px" Width="148px">
            <asp:ListItem></asp:ListItem>
            <asp:ListItem>第一学期</asp:ListItem>
            <asp:ListItem>第二学期</asp:ListItem>
        </asp:DropDownList>
                &nbsp;&nbsp;
                <asp:Button ID="Button1" runat="server" Text="确定"  />
                <br />
                <br />
                <asp:Label ID="Label6" runat="server" Text="课程名"></asp:Label>
                &nbsp;<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                <br />
                <br />
                <asp:Label ID="Label7" runat="server" Text="分数&gt;="></asp:Label>
                &nbsp;<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                <br />
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dhd2014112134ConnectionString %>" SelectCommand="SELECT * FROM [Grade3] WHERE (([Sem] = @Sem) AND ([Cname] = @Cname) AND ([Grade] &gt;= @Grade))">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="DdListSem0" Name="Sem" PropertyName="SelectedValue" Type="String" />
                        <asp:ControlParameter ControlID="TextBox2" Name="Cname" PropertyName="Text" Type="String" />
                        <asp:ControlParameter ControlID="TextBox3" Name="Grade" PropertyName="Text" Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <br />
                <br />
                <br />
           </div>  
                <div style="width: 115px; height: 66px">
                    <asp:TreeView ID="TreeView1" runat="server" ForeColor="Yellow" ImageSet="Arrows">
                        <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
                        <Nodes>
                            <asp:TreeNode NavigateUrl="~/TGrade.aspx" Text="总体成绩分析" Value="总体成绩分析"></asp:TreeNode>
                            <asp:TreeNode NavigateUrl="~/TGrade2.aspx" Text="查看总体成绩" Value="查看总体成绩"></asp:TreeNode>
                            <asp:TreeNode NavigateUrl="~/TGrade_1.aspx" Text="查看个人成绩" Value="查看个人成绩"></asp:TreeNode>
                        </Nodes>
                        <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" />
                        <ParentNodeStyle Font-Bold="False" />
                        <SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px" VerticalPadding="0px" />
                    </asp:TreeView>
            </div>
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
             <%--<br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />--%>
        <div style="height: 205px; width: 786px; float: right; ">

          
              
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Sem,No,Cno" DataSourceID="SqlDataSource1" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="454px">
                <Columns>
                    <asp:BoundField DataField="Sem" HeaderText="Sem" ReadOnly="True" SortExpression="Sem" />
                    <asp:BoundField DataField="No" HeaderText="No" ReadOnly="True" SortExpression="No" />
                    <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                    <asp:BoundField DataField="Cno" HeaderText="Cno" ReadOnly="True" SortExpression="Cno" />
                    <asp:BoundField DataField="Cname" HeaderText="Cname" SortExpression="Cname" />
                    <asp:BoundField DataField="Grade" HeaderText="Grade" SortExpression="Grade" />
                </Columns>
                <FooterStyle BackColor="White" ForeColor="#000066" />
                <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                <RowStyle ForeColor="#000066" />
                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#007DBB" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#00547E" />
            </asp:GridView>
              
            <br />
        </div>
               

            </div>
        </div>
</asp:Content>
